package com.chixing.day13_list;

import java.util.TreeSet;

public class TreeSetDemo {
    public static void main(String[] args) {
        TreeSet<String> tree = new TreeSet<>();
        tree.add("qq");
        tree.add("xx");
        System.out.println(tree);




        TreeSet<Student> tree1 = new TreeSet<>();
        Student student1 = new Student("aa",21);
        Student student2 = new Student("ss",23);
        tree1.add(student1);
        tree1.add(student2);


    }
}
